﻿using System;

public partial class Test_time : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DateTime now = DateTime.Now;
        int min = now.Minute % 10;
        min = (7 - min + 10) % 10;
        int sec = 5 - now.Second;

        int time = (min * 60 + sec + 600) % 600;

        Response.Write(time);
        Response.End();
    }
}
